<?php
    include('checkAdminAccess.php');
    $iniVars = parse_ini_file('../../config.ini',TRUE);
    include('../classes/adodb5/adodb.inc.php');
    include('../function/db.func.php');
    
    $psid = $_POST['psid'];
    
    $sql = "UPDATE singers SET singer_active=abs(singer_active-1) WHERE singer_id=$psid";
    $result = $db->Execute($sql);
    if($result)
    {
        echo 'success';
    }
?>